package demo1224.homework;

import java.io.File;
import java.io.IOException;

//1.使用File对象,在D盘中创建一个a.txt文件.
public class Demo1 {
    public static void main(String[] args) {

        File file = new File("D:\\a.txt");
        try {
            file.createNewFile();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
